$.eud.mdm = $.eud.mdm || {};

$.eud.mdm.mdmMember = {
	//基类名字
	pageName:"BaseSimplePage",
	init:function(){
		var me = this;
        var page = $("#mdmMember")[me.pageName]();
        
        $.eud.loader.get(BasePath+'/api/basDictApi/getDtlByDictCode.json?dictCode=member_type', function(data){
        	$.eud.mdm.mdmMember.data.memberTypeData = data;
        });
	},
	/**
     * 初始化页面事件
     */
    initEvents: function(){
    	var me =this;
    },
    //重载方法
    override:{
    
    },
    data:{
    	statusData:[{"itemCode":"1","itemName":"启用"},{"itemCode":"0","itemName":"禁用"}],
    	memberTypeData:[]
    },
    formatter:{
    	status:function(val,item){
            return $.eud.utils.comboboxFormatter(val, "itemCode","itemName",  $.eud.mdm.mdmMember.data.statusData);
        },
        memberType:function(val,item){
            return $.eud.utils.comboboxFormatter(val, "itemCode","itemName",  $.eud.mdm.mdmMember.data.memberTypeData);
        }
    }
	
};